package com.ftg.learn.exam.mapper;

import com.ftg.learn.exam.entity.Questiontype;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 类目表 Mapper 接口
 * </p>
 *
 * @author kangjx
 * @since 2022-03-12
 */
public interface QuestiontypeMapper extends BaseMapper<Questiontype> {

//    @Select("select sub.id,parent.pid,sub.title subtitle,parent.title parenttitle,sub.create_time,sub.isdeleted from " +
//            "exam_questiontype sub left join exam_questiontype parent " +
//            "on sub.id = parent.id where sub.isdeleted=1 limit #{start},#{end}")
//    List<Map<String,Object>> page(long start, long end);


}
